class CreateOrders < ActiveRecord::Migration[5.0]
  def change
    create_table :orders do |t|
      t.integer :user_id
      t.integer :restaurant_id
      t.integer :table_no,default: 0      
      t.string :order_number
      t.boolean :is_pay,default: false
      t.integer :status,default: 0
      t.timestamps
    end
  end
end
